<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>{{$users->user_name}}的书单 - 夜读书</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body class="docs">
@include('books.partials.navtop')
@include('books.partials.nav')

<div class="docs-wrapper container">
    <div class="ushudanlist">

        <div class="sidebar">
            <div class="user-info">
                <div class="icon"><a href="{{asset('u')}}/{{$users->uid}}" title="{{$users->user_name}}">
                @if($users->avatar_file !="")
                <img src="http://www.yedushu.com/{{$users->avatar_file}}"></img>
                @else
                <img src="http://www.yedushu.com/usersface/default/avatar-max.png">
                @endif
                </a></div>
                <div class="name"><a href="{{asset('u')}}/{{$users->uid}}">{{$users->user_name}}</a></div>
                <div class="edit"><a class="btn btn-green btn-lg" href="{{asset('addshudan')}}">分享书单</a></div>
            </div>
            <div class="divide"></div>
            <div class="user-sort">
                <div class="title"><span>分类</span><em class="num">共 {{$zongji}} 篇</em></div>
                <div class="sort-list">
                    <ul><a href="{{asset('u')}}/{{$users->uid}}/ushudanlist" onmouseover="this.style.background='#f9f1f1'" onmouseout="this.style.background=''"><span class="name">书单列表</span><span class="num">{{$shudangeshu}}</span></a></ul>
                    <ul><a href="{{asset('u')}}/{{$users->uid}}/reviewslist" onmouseover="this.style.background='#f9f1f1'" onmouseout="this.style.background=''"><span class="name">长书评和读后感</span><span class="num">{{$changshupinggeshu}}</span></a></ul>
                </div>
            </div>            
        </div>

        <div class="search_list content">
            <div class="navbarp">
                <div class="nav-tabs"><span class="nav-tab active">Ta分享的书单</span></div>
            </div>
            <div class="list shudan-list">            
                @foreach($shudans as $shudan)
                <div class="list-item">
                    <div class="biaoti"><a href="{{asset('shudaninfo')}}/{{$shudan->id}}" target="_blank">{{$shudan->biaoti}}</a></div>
                    <div class="data-info jieshao">
                    @if(mb_strlen($shudan->jieshao) > 80)
                    {{mb_substr(strip_tags($shudan->jieshao), 0, 80)}}......
                    @else
                    {{strip_tags($shudan->jieshao)}}
                    @endif
                    <span class="" style="padding-left:10px;"><a href="{{asset('shudaninfo')}}/{{$shudan->id}}" target="_blank">一共包含{{$shudan->geshu}}本书</a></span>
                    </div>
                    <ul class="list-books clearfix">
                    @foreach($shudan->shudanlsits as $shudanlist)
                        @if($shudanlist!=null)
                        <li class="list-books-imgs"><a href="{{asset('info')}}/{{$shudanlist->book_id}}" target="_blank"><img src="{{asset($shudanlist->bimg)}}"></img></a></li>
                        @endif
                    @endforeach
                    </ul>
                    <div class="time">{{date('Y-m-d H:i',$shudan->last_time)}} 发布</div>
                </div>
                @endforeach
            </div>
                {!! $shudans->render() !!}
        </div>

    </div> 
</div>

@include('books.partials.footer')

</body>
</html>
